package com.hjs.service;

import com.hjs.dto.Exposer;
import com.hjs.dto.SeckillExecution;
import com.hjs.entity.Seckill;
import com.hjs.exception.RepeatKillException;
import com.hjs.exception.SeckillCloseException;
import com.hjs.exception.SeckillException;
import jdk.Exported;

import java.util.List;

/**
 * Created by HJS on 2017/8/27.
 */
public interface SeckillService {
    List<Seckill> getSeckillList();
    Seckill getById(long seckillId);


    Exposer exportSeckillUrl(long seckillId);


    SeckillExecution executeSeckill(long seckillId, long userPhone, String md5)
            throws SeckillException,RepeatKillException,SeckillCloseException;

    SeckillExecution executeSeckillProcedure(long seckillId,long userPhone,String md5);
}

